<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>晒羊毛-撸羊毛有风险，投资需谨慎</title>
	<meta name="keywords" content="羊毛党，P2P平台，P2P羊毛，羊毛活动，撸羊毛，薅羊毛，网贷，p2p，证券开户，期货开户" />
    <meta name="description" content="羊毛：就在指尖" />
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/style.min.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/sym.css">
	<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/bootstrap.min.js"></script>	
    <script type="text/javascript" src="<%=path%>/js/layer/layer.js"></script>
	<script type="text/javascript" src="<%=path%>/js/common.js"></script>
</head>
<body class="gray-bg">
<jsp:include page="/views/commons/header.jsp"></jsp:include>
	<!-- 焦点图 -->
	<div id="index_slides">
		<div class="slides">
			<div class="slideInner"></div>
			<div class="nav">
				<a class="prev" href="javascript:;"></a>
				<a class="next" href="javascript:;"></a>
			</div>
		</div>
	</div>
	
	
	<!-- 焦点图 end -->
	<div class="layout">
		<div class="w720 pull-left hidden">
			<div class="hbox">
				<div class="hd">
					<a href="<%=path%>/views/activity/activity_list.jsp" class="more pull-right" style="margin-right:330px;">更多筛选条件</a>
					<h3>选羊毛</h3>
				</div>
				<div class="bd clearfix">
					<form id="activity_choose_form" action="">
					<div class="filter-wrap">
						<d:radio describe="投资金额:" tableColumn="invest_money_range" fieldName="investMoneyRange" value="${paramMap.investMoneyRange}" type="query"></d:radio>
						<d:radio describe="活动奖励:" tableColumn="reward_range" fieldName="rewardRange" value="${paramMap.rewardRange}" type="query"></d:radio>
						<d:radio describe="额外返现:" tableColumn="has_extra_cash" fieldName="hasExtraCash" value="${paramMap.hasExtraCash}" type="query"></d:radio>
						<d:radio describe="活动投资期限:" tableColumn="period_range" fieldName="periodRange" value="${paramMap.periodRange}" type="query"></d:radio>
						<d:radio describe="平台背景:" tableColumn="platform_background" fieldName="platformBackground" value="${paramMap.platformBackground}" type="query"></d:radio>
						<d:radio describe="运营时间:" tableColumn="operation_time_range" fieldName="operationTimeRange" value="${paramMap.operationTimeRange}" type="query"></d:radio>
						<d:radio describe="奖励方式:" tableColumn="reward_method" fieldName="rewardMethod" value="${paramMap.rewardMethod}" type="query"></d:radio>
					</div>
					</form>
					<div class="text-center pb20">
						<button class="btn btn-primary" onclick="javascript:queryActivityList(1)">搜索</button>
					</div>
				</div>
			</div>
			<div id="activity_list_div"></div>
			</div>
			
			<div class="row mb10">
				<div class="col-md-6">
					<div class="hbox">
						<div class="hd">
							<a class="more pull-right" href="<%=path%>/views/news/point_list.jsp">查看更多</a>
							<h3>
								分析观点
								<a class="title-email" href="mailto:1219451703@qq.com" data-container="body" data-toggle="popover" data-placement="top" data-content="1219451703@qq.com">
									<span class="sym sym-cuncaogao f16"></span>
									投稿邮箱
								</a>
							</h3>
						</div>
						<div class="bd clearfix" id="index_point_list_div"></div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="hbox">
						<div class="hd">
							<a class="more pull-right" href="<%=path%>/views/news/news_list.jsp">查看更多</a>
							<h3>
								新闻目录
								<a class="title-email" href="mailto:1219451703@qq.com" data-container="body" data-toggle="popover" data-placement="top" data-content="1219451703@qq.com">
									<span class="sym sym-cuncaogao f16"></span>
									投稿邮箱
								</a>
							</h3>
						</div>
						<div class="bd clearfix" id="index_news_list_div"></div>
					</div>
				</div>
		</div>
	</div>
<jsp:include page="/views/commons/footer.jsp"></jsp:include>
</body>
<script type="text/javascript">
$(document).ready(function(){
	queryBanner();
	queryActivityList(1);
	queryNewsList(8,2);
	queryNewsList(8,1);
});

function queryBanner(){
	$.ajax({
		url : path + "/uncheck/banner/list",
		type : "get",
		dataType : "html",
		success : function(data)
		{
			$("#index_slides").html(data);
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}

function queryActivityList(pageNo){
	
	var queryData=$("#activity_choose_form").serialize();
	
	if(queryData==null||queryData==""){
		queryData="pageNo="+pageNo;
	}else{
		queryData=queryData+"&pageNo="+pageNo;
	}
	
	$.ajax({
		url : path + "/uncheck/activity/list",
		type : "get",
		dataType : "html",
		data :queryData,
		success : function(data)
		{
			$("#activity_list_div").html(data);
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}

function queryNewsList(pageSize,newsType){
	
	$.ajax({
		url : path + "/uncheck/index/news/list",
		type : "get",
		dataType : "html",
		data :{
			pageNo:1,
			pageSize:pageSize,
			newsType:newsType
		},
		success : function(data)
		{
			if(newsType==1){
				$("#index_news_list_div").html(data);
			}else{
				$("#index_point_list_div").html(data);
			}
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}

</script>
</html>